@echo off

set ProtoDir=ServerProject\Server.Proto\Proto
set ClientProtoDir=UnityProject\Assets\Scripts\GameLogic\AutoGen\MessagePack\Proto

if exist "%ClientProtoDir%" (
    rmdir "%ClientProtoDir%"
)

mklink /j "%ClientProtoDir%" "%ProtoDir%"

set HttpDir=ServerProject\Server.Proto\Http
set ClientHttpDir=UnityProject\Assets\Scripts\GameLogic\AutoGen\Http

if exist "%ClientHttpDir%" (
    rmdir "%ClientHttpDir%"
)

mklink /j "%ClientHttpDir%" "%HttpDir%"

pause